package com.wei.czz.common.vo.admin.dept;

import com.alibaba.excel.annotation.ExcelProperty;
import com.wei.czz.common.easyexcel.converter.CzzLongStringConverter;
import com.wei.czz.common.vo.common.UploadVo;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-11-24 16:45:53
 * className: DeptUploadVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class DeptUploadVo extends UploadVo {

    /**
     * 父级部门（序号|主键）
     */
    @NotNull(message = "父级部门（序号|主键）不能为空")
    @ExcelProperty(value = "父级部门（序号|主键）", converter = CzzLongStringConverter.class)
    private Long parentNo;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空")
    @ExcelProperty(value = "名称")
    private String name;

    /**
     * 业务类型名称
     */
    @NotBlank(message = "业务类型不能为空")
    @ExcelProperty(value = "业务类型")
    private String businessTypeName;

    /**
     * 排序等级
     */
    @NotNull(message = "排序等级不能为空")
    @ExcelProperty(value = "排序等级")
    private Integer sort;

}
